package cn.est.controller;

import cn.est.dto.Result;
import cn.est.service.SMSService;
import cn.est.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SMSController {

    @Autowired
    private SMSService smsService;

    @PostMapping("/api/sms/verifyCode")
    public Result verifCode(String phone , int codeType) {
        smsService.verifCode(phone,codeType);
        return ResultUtil.success();
    }
}
